package lab02.test26;

public class ExceptionTest {
    public static void main(String[] args) {
        try{
            int a=6;
            int b=0;
            a=a/b;
            System.out.println(a);
        }catch (ArithmeticException e){
           System.out.println("除数为0");
           e.printStackTrace();
        } finally {
            System.out.println("程序结束");
        }

    }
}
